package com.xwb.laboratory.test.spring;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

@Service
public class MessageStatusListener implements ApplicationListener<MessageEvent> {
    @Override
    public void onApplicationEvent(MessageEvent event) {
        System.out.println(Thread.currentThread().getName() + "------收到事件");
    }
}
